<template>
    <main-layout>
      <div class="box">
        <div class="head">
          <p>消息</p>
        </div>
        <div class="nav">
          <ul>
            <li><i class="iconfont icon1">&#xe640;</i>物流消息</li>
            <li><i class="iconfont icon2">&#xe665;</i>通知消息</li>
            <li @click="goNewsNode"><i class="iconfont icon3">&#xe66a;</i>互动消息</li>
          </ul>
        </div>
        <div class="message">
          <div class="msg">
            <img src="../../images/me/person.jpg">
            <h5>OMINI官方旗舰店<span>09:22</span></h5>
            <p>请核对您的付款信息<span>2</span></p>
          </div>
          <div class="msg">
            <img src="../../images/me/person.jpg">
            <h5>OMINI官方旗舰店<span>09:22</span></h5>
            <p>请核对您的付款信息<span>2</span></p>
          </div>
          <div class="msg">
            <img src="../../images/me/person.jpg">
            <h5>OMINI官方旗舰店<span>09:22</span></h5>
            <p>请核对您的付款信息<span>2</span></p>
          </div>
        </div>
        <div class="nomore">
          <p>没有更多了哦~</p>
        </div>
      </div>
    </main-layout>
</template>

<script>
  export default {
    methods:{
      goNewsNode(){
        this.$router.push('/newsNode')
      }
    }
  }
</script>

<style lang="less" scoped>
  *{
    margin: 0;
    padding: 0;
  }
  .head{
    height: 150px;
    background: #c1AB96;
    overflow: hidden;
    p{
      font-size: 20px;
      color: #fff;
      font-weight: 700;
      margin-left: 20px;
      margin-top: 50px;
    }
  }
  .nav{
    width: 345px;
    height: 85px;
    border-radius: 14px;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translate(-50%);
    box-shadow: 4px 4px 15px #585757;
    background: #fff;
    ul{
      display: flex;
      justify-content: space-around;
      margin-top: 12px;
      li{
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 12px;
        color: #999999;
        i{
        height: 45px;
        width: 45px;
        font-size: 25px;
        display: block;
        border-radius: 50%;
        text-align: center;
        color: #fff;
        line-height: 45px;
        }
        .icon1{
         background: linear-gradient(90deg, rgba(234, 205, 163, 1) 0%, rgba(234, 205, 163, 1) 0%, rgba(214, 174, 123, 1) 100%, rgba(214, 174, 123, 1) 100%);
        }
        .icon2{
          background: linear-gradient(90deg, rgba(170, 255, 169, 1) 0%, rgba(170, 255, 169, 1) 0%, rgba(17, 255, 189, 1) 100%, rgba(17, 255, 189, 1) 100%);
        }
        .icon3{
          background: linear-gradient(90deg, rgba(127, 127, 213, 1) 0%, rgba(127, 127, 213, 1) 0%, rgba(134, 168, 231, 1) 50%, rgba(45, 167, 228, 1) 100%, rgba(145, 234, 228, 1) 100%, rgba(145, 234, 228, 1) 100%);
        }
      }
    }
  }
  .message{
      padding: 60px 20px 0px;
      background: #fff;
      .msg{
        border-bottom: 1px solid rgb(206, 204, 204);
        padding: 16px 0;
        img{
          display: block;
          width: 46px;
          height: 46px;
          border-radius: 50%;
          float: left;
          margin-right: 15px;
        }
        h5{
          font-size: 14px;
          color: #333333;
          span{
            display: block;
            float: right;
          color: #868686;
          font-weight: 300;

          }
        }
        p{
          font-size: 12px;
          color: #868686;
          margin-top: 10px;
          span{
            display: block;
            float: right;
            background: rgba(255, 0, 0, 0.623);
            width: 18px;
            height: 18px;
            border-radius: 50%;
            color: #fff;
            line-height: 17px;
            text-align: center;
          }
        }
      }
  }
  .nomore{
    margin-top: 15px;
    // width: 100%;
    p{
      position: absolute;
      left: 50%;
      transform: translate(-50%);
      color: #8E7E6F;
      font-size: 17px;
    }
  }
</style>
